/**
 * jims
 */
package com.jims.master.modules.emr.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.emr.dao.CourseRecordDao;
import com.jims.master.modules.emr.entity.CourseRecord;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Service
 * @author WangYongQiang
 * @version 2018-08-16
 */
@Service
@Transactional(readOnly = true)
public class CourseRecordService extends CrudService<CourseRecordDao, CourseRecord> {

	public CourseRecord get(String id) {
		return super.get(id);
	}
	
	public List<CourseRecord> findList(CourseRecord courseRecord) {
		return super.findList(courseRecord);
	}
	
	public Page<CourseRecord> findPage(Page<CourseRecord> page, CourseRecord courseRecord) {
		return super.findPage(page, courseRecord);
	}
	
	@Transactional(readOnly = false)
	public int save(CourseRecord courseRecord) {
		return super.save(courseRecord);
	}
	
	@Transactional(readOnly = false)
	public int delete(CourseRecord courseRecord) {
		return super.delete(courseRecord);
	}

	public List<CourseRecord> getCourseRecordByZhuYuanId(String zhuyuanId){ return dao.getCourseRecordByZhuYuanId(zhuyuanId);}
	
}